[#assign url='${ui.base}${href}${hrefFormer}${hrefLatter}']
[#if !anchor??][#assign anchor=''/][/#if]
[#list p.elements as e]
	[#if e.type == 'F']
		[#if e.enable]
			[#if e.key == 1]
				<a href="${ui.base}${href}${anchor}" title="Previous Page" rel="prev">&laquo;</a>
			[#else]
				<a href="${url}${e.key}${anchor}" title="Previous Page" rel="prev">&laquo;</a>
			[/#if]
		[#else]
			<span title="Previous page" class="disabled">&laquo;</span>
		[/#if]
	[#elseif e.type == 'M']
		[#if e.enable]
			[#if e.key == 1]
 			<a href="${ui.base}${href}${anchor}" title="First Page">${e.value}</a>
 		[#elseif e.key == p.totalPage]
 			<a href="${url}${e.key}${anchor}" title="Last Page">${e.value}</a>
			[#else]
 			<a href="${url}${e.key}${anchor}" title="Page ${e.key}">${e.value}</a>
			[/#if]
		[#else]
			<span title="Current page" class="current">${e.value}</span>
		[/#if]
	[#else]
		[#if e.enable]
			<a href="${url}${e.key}${anchor}" title="Next page" rel="next">&raquo;</a>
		[#else]
			<span title="Next page" class="disabled">&raquo;</span>
		[/#if]
	[/#if]
[/#list]